package com.aaa.common.util;

/**
 * @FileName: ResultStatus
 * @Description: 结果状态枚举类
 * @Author: zhz
 * @CreateTime: 2025/7/1 17:22
 * @Version: 1.0.0
 */
public enum ResultStatus {
    //WEIXIN_PAY(200,"微信支付"),
    INTEGRAL_PAY(202,"积分支付"),
    INTEGRAL_NOT_ENOUGH(900, "账户积分不足"),
    NO_STORE_INTEGRAL(7002, "未在该门店消费，暂无积分"),
    SUCCESS(200,"操作成功"),
    FAIL(500,"操作失败"),
    NOT_FOUND(404,"未找到该资源"),
    UNAUTHORIZED(401,"未授权"),
    FORBIDDEN(403,"禁止访问"),
    ARGUMENT_ERROR(400,"参数错误"),
    PARAM_NOT_EMPTY(4001,"参数为空!"),
    ILLEGAL_CHAR(4002,"包含非法字符!"),
    ILLEGAL_IP(4003,"非法IP!"),
    TOKEN_IS_NULL_ERROR(4004,"token为空!"),

    USER_BALANCE_NOT_ENOUGH(4005, "余额不足");

    private Integer returnCode;
    private String returnMessage;

//    ResultStatus() {
//    }


    ResultStatus(Integer returnCode, String returnMessage) {
        this.returnCode = returnCode;
        this.returnMessage = returnMessage;
    }

    public Integer getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(Integer returnCode) {
        this.returnCode = returnCode;
    }

    public String getReturnMessage() {
        return returnMessage;
    }

    public void setReturnMessage(String returnMessage) {
        this.returnMessage = returnMessage;
    }
}
